package main.java.design.observer;

/**
 * <p></p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/21 10:08
 */
public class ConcreteFanA implements Fan {
    private String fanName;

    public ConcreteFanA(String fanName) {
        this.fanName = fanName;
    }


    @Override
    public void update(String msg, String starName) {
        System.out.println(fanName + "收到了" + starName + "的微博" + msg);
    }
}
